package main

import (
	"time"
	"fmt"
)

func main()  {
	t1:=time.Now()
	fmt.Println(t1)
	//获取日期
	year,month,day:=t1.Date()
	fmt.Println("年：月：日",year,month,day)
	//获取时间
	hour,minute,second :=t1.Clock()
	fmt.Println("时：分：秒",hour,minute,second)

	//获取年，月，日，时，分，秒，星期，纳秒
	fmt.Println(t1.Year())
	fmt.Println(t1.Month())
	fmt.Println(t1.Day())
	fmt.Println(t1.Hour())
	fmt.Println(t1.Minute())
	fmt.Println(t1.Second())
	fmt.Println(t1.Weekday())
	fmt.Println(t1.Nanosecond())
	fmt.Println(t1.ISOWeek())
	fmt.Println(t1.YearDay())


}